package org.model;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Xsb entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Xsb implements java.io.Serializable {

	private String xh;
	private Zyb zyb;
	private String xm;
	private Byte xb;
	private Date cssj;
	private Integer zxf;
	private String bz;
	private byte[] zp;
	private Set kcs=new HashSet();
	private Integer zyId;


	// Constructors

	/** default constructor */
	public Xsb() {
	}

	/** minimal constructor */
	public Xsb(String xh, String xm, Byte xb, Integer zyId, String bz) {
		this.xh = xh;
		this.xm = xm;
		this.xb = xb;
		this.zyId = zyId;
		this.bz = bz;
	}

	/** full constructor */
	public Xsb(String xh, String xm, Byte xb, Date cssj, Integer zyId,
			Integer zxf, String bz, byte[] zp) {
		this.xh = xh;
		this.xm = xm;
		this.xb = xb;
		this.cssj = cssj;
		this.zyId = zyId;
		this.zxf = zxf;
		this.bz = bz;
		this.zp = zp;
	}

	// Property accessors

	public String getXh() {
		return this.xh;
	}

	public void setXh(String xh) {
		this.xh = xh;
	}

	public String getXm() {
		return this.xm;
	}

	public void setXm(String xm) {
		this.xm = xm;
	}

	public Byte getXb() {
		return this.xb;
	}

	public void setXb(Byte xb) {
		this.xb = xb;
	}

	public Date getCssj() {
		return this.cssj;
	}

	public void setCssj(Date cssj) {
		this.cssj = cssj;
	}

	public Integer getZyId() {
		return this.zyId;
	}

	public void setZyId(Integer zyId) {
		this.zyId = zyId;
	}

	public Integer getZxf() {
		return this.zxf;
	}

	public void setZxf(Integer zxf) {
		this.zxf = zxf;
	}

	public String getBz() {
		return this.bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	public byte[] getZp() {
		return this.zp;
	}

	public void setZp(byte[] zp) {
		this.zp = zp;
	}

	public Zyb getZyb() {
		return zyb;
	}

	public void setZyb(Zyb zyb) {
		this.zyb = zyb;
	}

	public Set getKcs() {
		return kcs;
	}

	public void setKcs(Set kcs) {
		this.kcs = kcs;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Xsb))
			return false;
		Xsb castOther = (Xsb) other;

		return ((this.getXh() == castOther.getXh()) || (this.getXh() != null
				&& castOther.getXh() != null && this.getXh().equals(
				castOther.getXh())))
				&& ((this.getXm() == castOther.getXm()) || (this.getXm() != null
						&& castOther.getXm() != null && this.getXm().equals(
						castOther.getXm())))
				&& ((this.getXb() == castOther.getXb()) || (this.getXb() != null
						&& castOther.getXb() != null && this.getXb().equals(
						castOther.getXb())))
				&& ((this.getCssj() == castOther.getCssj()) || (this.getCssj() != null
						&& castOther.getCssj() != null && this.getCssj()
						.equals(castOther.getCssj())))
				&& ((this.getZyId() == castOther.getZyId()) || (this.getZyId() != null
						&& castOther.getZyId() != null && this.getZyId()
						.equals(castOther.getZyId())))
				&& ((this.getZxf() == castOther.getZxf()) || (this.getZxf() != null
						&& castOther.getZxf() != null && this.getZxf().equals(
						castOther.getZxf())))
				&& ((this.getBz() == castOther.getBz()) || (this.getBz() != null
						&& castOther.getBz() != null && this.getBz().equals(
						castOther.getBz())))
				&& ((this.getZp() == castOther.getZp()) || (this.getZp() != null
						&& castOther.getZp() != null && this.getZp().equals(
						castOther.getZp())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getXh() == null ? 0 : this.getXh().hashCode());
		result = 37 * result + (getXm() == null ? 0 : this.getXm().hashCode());
		result = 37 * result + (getXb() == null ? 0 : this.getXb().hashCode());
		result = 37 * result
				+ (getCssj() == null ? 0 : this.getCssj().hashCode());
		result = 37 * result
				+ (getZyId() == null ? 0 : this.getZyId().hashCode());
		result = 37 * result
				+ (getZxf() == null ? 0 : this.getZxf().hashCode());
		result = 37 * result + (getBz() == null ? 0 : this.getBz().hashCode());
		result = 37 * result + (getZp() == null ? 0 : this.getZp().hashCode());
		return result;
	}


}